import { AxiosResponse } from "axios";
import type { ReturnImageInfosObj } from "../types";
import request from "./request";

const sendBoardMessage = (
  message: string
): Promise<AxiosResponse<string>> => {
  return request({
    url: "/send_message",
    method: "get",
    params: {
      message: message
    },
  });
};

const getBoardMessage = (
): Promise<AxiosResponse<{"message":string[]}>> => {
  return request({
    url: "/get_message",
    method: "get",
  });
};

export { sendBoardMessage, getBoardMessage };
